import request from '@/utils/request'

// 查询投诉处理列表
export function listBehindDocComplaint(query) {
  return request({
    url: '/behindComplaint/behindDocComplaint/list',
    method: 'get',
    params: query
  })
}

// 查询投诉处理详细
export function getBehindDocComplaint(complaintId) {
  return request({
    url: '/behindComplaint/behindDocComplaint/' + complaintId,
    method: 'get'
  })
}

// 新增投诉处理
export function addBehindDocComplaint(data) {
  return request({
    url: '/behindComplaint/behindDocComplaint',
    method: 'post',
    data: data
  })
}

// 修改投诉处理
export function updateBehindDocComplaint(data) {
  return request({
    url: '/behindComplaint/behindDocComplaint',
    method: 'put',
    data: data
  })
}

// 删除投诉处理
export function delBehindDocComplaint(complaintId) {
  return request({
    url: '/behindComplaint/behindDocComplaint/' + complaintId,
    method: 'delete'
  })
}
